package sys.service.impl;

import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import sys.dao.PersonDao;
import sys.dao.ShDao;
import sys.entity.*;
import sys.service.PersonService;
import sys.service.ShService;


/**
 * @author 秉性哥
 * @createTime 2022/9/20 15:51
 * @description
 */
@Service
public class ShServiceImpl implements ShService {
    @Autowired
    private ShDao shDao;

    @Override
    public PageResult findPage(QueryPageBean queryPageBean) {
        PageHelper.startPage(queryPageBean.getCurrentPage(),queryPageBean.getPageSize());
        Page<DtoSh> page=shDao.findPage();
        return new PageResult(page.getTotal(),page.getResult());
    }

}
